package com.xyf.myGame;


import com.xyf.myGame.mapper.TestMapper;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/test")
public class TestController {



    @Resource
    private TestMapper testMapper;



    @GetMapping("/1")
    public List<User> getUserList() {
        return testMapper.getUserByName("xyf");
    }


}
